package dao;

import entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(User record);

    int insertSelective(User record);
    User userlogin(@Param("uphone") String uphone);
    User selectByPrimaryKey(Integer uid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(@Param("u") User u);

    List<User> getRight(@Param("id") Integer id);

    List<User> getlike(@Param("id") Integer id);

    List<User> getComment(@Param("id") Integer id);

}